﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.Live.ServerControls.Web._Default" %>
<%@ Register Namespace="Microsoft.Live.ServerControls.VE" Assembly="Microsoft.Live.ServerControls.VE" TagPrefix="cc" %>
<%@ Register Namespace="Microsoft.Live.ServerControls.VE.Extenders" Assembly="Microsoft.Live.ServerControls.VE" TagPrefix="cx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Virtual Earth Server Control</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"  />
    <div style="float:left;width:400px;">
        <cc:map ID="myMap" runat="server" ZoomLevel="10" 
                style="top: 0px; left: 0px; height: 220px; width: 194px" 
            Height="400px" Width="400px" Dashboard="True" Center-Latitude="47.64075" Center-Longitude="-122.12909">
        </cc:map>   
    </div>
    <div style="float:left;width:400px;">
        <h3>Client Side Extenders</h3>  
        <asp:LinkButton ID="PanUp" runat="server" Text="Pan Up"></asp:LinkButton>
        <asp:LinkButton ID="PanDown" runat="server" Text="Pan Down"></asp:LinkButton>
        <asp:LinkButton ID="PanLeft" runat="server" Text="Pan Left"></asp:LinkButton>
        <asp:LinkButton ID="PanRight" runat="server" Text="Pan Right"></asp:LinkButton>
        <cx:pan ID="PanUpExtender" runat="server" DeltaX="0" DeltaY="-200" MapControlID="myMap" TargetControlID="PanUp" ></cx:pan>
        <cx:pan ID="PanDownExtender" runat="server" DeltaX="0" DeltaY="200" MapControlID="myMap" TargetControlID="PanDown" ></cx:pan>
        <cx:pan ID="PanLeftExtender" runat="server" DeltaX="-200" DeltaY="0" MapControlID="myMap" TargetControlID="PanLeft" ></cx:pan>
        <cx:pan ID="PanRightExtender" runat="server" DeltaX="200" DeltaY="0" MapControlID="myMap" TargetControlID="PanRight" ></cx:pan>
        <br />
        <asp:LinkButton ID="ZoomIn" runat="server" Text="Zoom In"></asp:LinkButton>
        <asp:LinkButton ID="ZoomOut" runat="server" Text="Zoom Out"></asp:LinkButton>
        <cx:CenterAndZoom ID="ZoomInExtender" runat="server" TargetControlID="ZoomIn" MapControlID="myMap" Mode="ZoomIn"></cx:CenterAndZoom>
        <cx:CenterAndZoom ID="ZoomOutExtender" runat="server" TargetControlID="ZoomOut" MapControlID="myMap" Mode="ZoomOut"></cx:CenterAndZoom>
        <br />
        <asp:LinkButton ID="ClientSideAerial" runat="server" Text="Aerial"></asp:LinkButton>
        <asp:LinkButton ID="ClientSideRoad" runat="server" Text="Road"></asp:LinkButton>
        <%--
        Removed as Hybrid no longer supported
        <asp:LinkButton ID="ClientSideHybrid" runat="server" Text="Hybrid"></asp:LinkButton> --%>
        <asp:LinkButton ID="ClientSideShaded" runat="server" Text="Shaded"></asp:LinkButton>
        <cx:setmapstyle ID="AerialExtender" runat="server" MapStyle="Aerial" MapControlID="myMap" TargetControlID="ClientSideAerial" ></cx:setmapstyle>     
        <cx:setmapstyle ID="RoadExtender" runat="server" MapStyle="Road" MapControlID="myMap" TargetControlID="ClientSideRoad" ></cx:setmapstyle>     
        <%--
        Removed as Hybrid no longer supported
        <cx:setmapstyle ID="HybridExtender" runat="server" MapStyle="Hybrid" MapControlID="myMap" TargetControlID="ClientSideHybrid" ></cx:setmapstyle>      --%>
        <cx:setmapstyle ID="ShadedExtender" runat="server" MapStyle="Shaded" MapControlID="myMap" TargetControlID="ClientSideShaded" ></cx:setmapstyle>     
        <br />
        <h3>Server Side Methods</h3>    
        <asp:UpdatePanel runat="server">
            <ContentTemplate>
                <asp:LinkButton ID="ServerSideZoomIn" runat="server" Text="Zoom In" onclick="ServerSideZoomIn_Click"></asp:LinkButton>
                <asp:LinkButton ID="ServerSideZoomOut" runat="server" Text="Zoom Out" 
                    onclick="ServerSideZoomOut_Click"></asp:LinkButton>
                <br />
                <asp:LinkButton ID="ServerSideAerial" runat="server" Text="Aerial" 
                    onclick="ServerSideAerial_Click"></asp:LinkButton>
                <asp:LinkButton ID="ServerSideRoad" runat="server" Text="Road" 
                    onclick="ServerSideRoad_Click"></asp:LinkButton>
<%--            
                Removed as Hybrid map no longer supported    
                <asp:LinkButton ID="ServerSideHybrid" runat="server" Text="Hybrid" 
                    onclick="ServerSideHybrid_Click"></asp:LinkButton>
--%>
                <asp:LinkButton ID="ServerSideShaded" runat="server" Text="Shaded" 
                    onclick="ServerSideShaded_Click"></asp:LinkButton>
                    <br />
                <asp:LinkButton ID="ServerSidePantoLatLong" runat="server" 
                    Text="Pan to LatLong" onclick="ServerSidePantoLatLong_Click"></asp:LinkButton>
                <asp:LinkButton ID="RotateBirdeyeView" runat="server" 
                    Text="Rotate Birdeye View" onclick="RotateBirdeyeView_Click"></asp:LinkButton>
                <asp:LinkButton ID="IncludeinView" runat="server" Text="IncludeinView" 
                    onclick="IncludeinView_Click"></asp:LinkButton>
                <asp:LinkButton ID="MultipleMethods" runat="server" 
                    Text="Pan to LatLong then start a continuous pan" 
                    onclick="MultipleMethods_Click"></asp:LinkButton><br />
                    <asp:LinkButton ID="MiniMap" runat="server" Text="toggle minimap" 
                    onclick="MiniMap_Click"></asp:LinkButton>
                <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Load 
                Specfic Birdseye</asp:LinkButton>
                <br />
                <asp:LinkButton ID="SetSpecificViewPoints" runat="server" 
                    Text="SetMapView (points)" onclick="SetSpecificViewPoints_Click"></asp:LinkButton>
                <asp:LinkButton ID="SetSpecificViewRect" runat="server" 
                    Text="SetMapView (rect)" onclick="SetSpecificViewRect_Click"></asp:LinkButton>
            </ContentTemplate>    
        </asp:UpdatePanel>
        <br />
        <h3>Full Postback Tests</h3>         
        <asp:Button ID="ButtonNothing" runat="server" Text="Simple postback - no change" />
    </div>
    </form>
</body>
</html>
